from flask import Flask
from model import *
from news.blue import blue
from news.web import web
from news.user import user

app = Flask(__name__)

app.config.from_pyfile("config.py")

db.init_app(app)

app.register_blueprint(blue, url_prefix="/admin")

app.register_blueprint(web)

app.register_blueprint(user, url_prefix="/user")

if __name__ == '__main__':
    app.run()
